<?php
// +----------------------------------------------------------------------
// | Author: sam <yimingsha@qq.com>
// | 短信消息类
// +----------------------------------------------------------------------
namespace Sam;

//短信接口
interface ISMS{
	public function send($phone,$message); //发送
}


class SMS{
	public $error ='';
	function __construct($type){
		$class  =   '\\Sam\\SMS\\'. strtolower($type);
        $this->Class = new $class();
	}

	public function send($phone,$message){
		return $this->Class->send($phone,$message);
	}
}
